﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditRole.aspx.cs" Inherits="MvcMall.AdminWeb.Manage.AdminRoles.EditRole" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <link href="/Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="tabs">
            <ul>
                <li><a href="#savePower">修改角色信息</a> </li>
            </ul>
            <div id="savePower">
                <table width="100%">
                    <tr>
                        <th colspan="4">
                            角色信息
                        </th>
                    </tr>
                    <tr>
                        <td style="width: 20%; text-align: right;">
                            角色编号:
                        </td>
                        <td style="width: 30%">
                            <asp:Label ID="lblRoleId" runat="server"></asp:Label>
                        </td>
                        <td style="width: 20%; text-align: right;">
                            角色名称:
                        </td>
                        <td style="width: 30%">
                            <asp:Label ID="lblRoleName" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
                <table width="100%">
                    <tr>
                        <td style="width: 48%; border: none; vertical-align: top;">
                            <table width="100%">
                                <tr>
                                    <th>
                                        角色权限
                                    </th>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Repeater ID="rptRolePowerModuls" runat="server" OnItemDataBound="rptRolePowerModuls_ItemDataBound">
                                            <ItemTemplate>
                                                <span style="line-height: 30px; color: Blue">
                                                    <asp:Label ID="lblPowerModulId" Text='<%# Eval("Id") %>' Visible="false" runat="server"></asp:Label>
                                                    <%# Eval("ModulName") %></span>
                                                <ul>
                                                    <asp:Repeater ID="rptPowers" runat="server" OnItemDataBound="rptPowers_ItemDataBound">
                                                        <ItemTemplate>
                                                            <li>
                                                                <asp:Label ID="lblPowerId" Visible="false" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
                                                                <asp:CheckBox ID="chkHas" runat="server" /><%# Eval("PowerName") %></li>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </ul>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                        </td>
                        <td style="width: 48%; border: none; vertical-align: top;">
                            <table width="100%">
                                <tr>
                                    <th>
                                        角色菜单
                                    </th>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Repeater ID="rptMenuModuls" runat="server" OnItemDataBound="rptMenuModuls_ItemDataBound">
                                            <ItemTemplate>
                                                <span style="line-height: 30px; color: Blue">
                                                    <asp:Label ID="lblModulId" Text='<%# Eval("Id") %>' Visible="false" runat="server"></asp:Label>
                                                    <%# Eval("ModulName") %></span>
                                                <ul>
                                                    <asp:Repeater ID="rptMenus" runat="server" OnItemDataBound="rptMenus_ItemDataBound">
                                                        <ItemTemplate>
                                                            <li>
                                                                <asp:Label ID="lblMenuId" Visible="false" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
                                                                <asp:CheckBox ID="chkHas" runat="server" /><%# Eval("MenuName") %></li>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </ul>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="text-align: center">
                            <asp:Button ID="btnSave" runat="server" Text="保存角色信息" onclick="btnSave_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
